import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询入库列表
export function selectListStock(query) {
  return request({
    url: '/eam-b/stock/list',
    method: 'get',
    params: query
  })
}

// 查询用户下拉列表
export function selectUserList(query) {
  return request({
    url: '/eam-b/users/userDeptId',
    method: 'get',
    params: query
  })
}

// 查询存放位置下拉列表
export function selectLocationList(query) {
  return request({
    url: '/eam-b/location/list',
    method: 'get',
    params: query
  })
}

// 查询固定资产列表
export function selectAssetList(query) {
  return request({
    url: '/eam-b/asset/list',
    method: 'get',
    params: query
  })
}

// 查询固定资产列表
export function selectAssetLists(query) {
  return request({
    url: '/eam-b/asset/lists',
    method: 'get',
    params: query
  })
}

// 查询固定资产列表
export function queryEamDateList(query) {
  return request({
    url: '/eam-b/asset/queryEamDateList',
    method: 'get',
    params: query
  })
}

// 审核
export function updateaUdit(data) {
  return request({
    url: '/eam-b/stock',
    method: 'put',
    data: data
  })
}

// 查询资产类型列表
export function selectEamTypeList(query) {
  return request({
    url: '/eam-b/type/list',
    method: 'get',
    params: query
  })
}

// 新增入库订单
export function add(data) {
  return request({
    url: '/eam-b/stock/add',
    method: 'post',
    data: data
  })
}
// 新增入库订单从
export function addD(data) {
  return request({
    url: '/eam-b/stockD/addD',
    method: 'post',
    data: data
  })
}
